package org.testis.gui.mvc.model.testdesign;

import org.testis.gui.mvc.model.*;
import org.testis.gui.mvc.controller.testdesign.LanguageHandlerController;


/**
 *
 * @author nurhat
 */
public class LanguageHandlerModel extends AbstractModel
{

    private Boolean m_addVisibility = false;
    private Boolean m_loadVisibility = false;
    private String m_languageName;
    private Integer m_languageId = 0;
    private Integer m_deviceAbstractionId = 0;
    private Integer m_deviceId = 0;
    private Integer m_firmwareId = 0;
    private String m_languageText;
    private Boolean m_languageViewVisibility = false;


    public Boolean getLanguageViewVisibility()
    {
        return m_languageViewVisibility;
    }


    public void setLanguageViewVisibility(Boolean val)
    {
        boolean oldValue = m_languageViewVisibility;
        m_languageViewVisibility = val;
        firePropertyChange(LanguageHandlerController.SHOW_VIEW,
                           oldValue,
                           m_languageViewVisibility);


    }


    public Boolean getAddVisibility()
    {
        return m_addVisibility;
    }


    public void setAddVisibility(
        Boolean addVisibility)
    {
        Boolean oldValue = m_addVisibility;
        m_addVisibility = addVisibility;
        firePropertyChange(
            LanguageHandlerController.LANGUAGE_ADD_VISIBILITY,
            oldValue,
            m_addVisibility);
    }




    public Boolean getLoadVisibility()
    {
        return m_loadVisibility;
    }


    public void setLoadVisibility(
        Boolean loadVisibility)
    {
        Boolean oldValue = m_loadVisibility;
        m_loadVisibility = loadVisibility;
        firePropertyChange(
            LanguageHandlerController.LANGUAGE_LOAD_VISIBILITY,
            oldValue,
            m_loadVisibility);

    }


    public String getLanguageName()
    {
        return m_languageName;
    }


    public void setLanguageName(String languageName)
    {
        String oldValue = m_languageName;
        m_languageName = languageName;
        firePropertyChange(
            LanguageHandlerController.LANGUAGE_NAME,
            oldValue,
            m_languageName);
    }


    public Integer getLanguageId()
    {
        return m_languageId;
    }


    public void setLanguageId(Integer languageId)
    {
        Integer oldValue = m_languageId;
        m_languageId = languageId;
        firePropertyChange(
            LanguageHandlerController.LANGUAGE_ID,
            oldValue,
            m_languageId);
    }


    public Integer getDeviceAbstractionId()
    {
        return m_deviceAbstractionId;
    }


    public void setDeviceAbstractionId(Integer deviceAbstractionId)
    {
        Integer oldValue = m_deviceAbstractionId;
        m_deviceAbstractionId = deviceAbstractionId;
        firePropertyChange(
            LanguageHandlerController.DEVICE_ABSTRACTION_ID,
            oldValue,
            m_deviceAbstractionId);
    }


    public Integer getDeviceId()
    {
        return m_deviceId;
    }


    public void setDeviceId(Integer deviceId)
    {

        Integer oldValue = m_deviceId;
        m_deviceId = deviceId;
        firePropertyChange(
            LanguageHandlerController.DEVICE_ID,
            oldValue,
            m_deviceId);
    }


    public int getFirmwareId()
    {
        return m_firmwareId;
    }


    public void setFirmwareId(Integer firmwareId)
    {
        Integer oldValue = m_firmwareId;
        m_firmwareId = firmwareId;
        firePropertyChange(
            LanguageHandlerController.FIRMWARE_ID,
            oldValue,
            m_firmwareId);
    }


    public String getLanguageText()
    {
        return m_languageText;
    }


    public void setLanguageText(String languageText)
    {
        String oldValue = m_languageText;
        m_languageText = languageText;
        firePropertyChange(
            LanguageHandlerController.LANGUAGE_TEXT,
            oldValue,
            m_languageText);
    }
}
